//
//  TodayCellTwoTableViewCell.m
//  UI_A段项目_iDaily Watch
//
//  Created by 刘旭 on 14-10-13.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "TodayCellTwoTableViewCell.h"

@implementation TodayCellTwoTableViewCell
- (void)dealloc
{
    [_title1 release];
    [_content1 release];
    [super dealloc];
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        self.weibo = [UIButton buttonWithType:UIButtonTypeRoundedRect];
        _weibo.frame = CGRectMake(250, 10, 50, 20);
        [_weibo setTitle:@"WeiBo" forState:UIControlStateNormal];
//        _weibo.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:_weibo];

        self.info = [UIButton buttonWithType:UIButtonTypeRoundedRect];
        _info.frame = CGRectMake(20, 120, 80, 30);
        [_info setTitle:@"店铺信息" forState:UIControlStateNormal];
//        _info.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_info];
        
        self.website= [UIButton buttonWithType:UIButtonTypeRoundedRect];
        _website.frame = CGRectMake(20 + 80 + 20 , 120, 80 + 10, 30);
        [_website setBackgroundImage:[UIImage imageNamed:@"TodayWebsite.png"] forState:UIControlStateNormal];
//        _website.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_website];
        
        self.share = [UIButton buttonWithType:UIButtonTypeRoundedRect];
        _share.frame = CGRectMake(20 + 80 + 20 + 80 + 20 + 20, 120, 80 - 20, 30);
        [_share setBackgroundImage:[UIImage imageNamed:@"TodayShare1.png"] forState:UIControlStateNormal];
//        _share.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_share];
        
        self.title1 = [[UILabel alloc]initWithFrame:CGRectMake(20, 10, 120, 20)];
        [self.contentView addSubview:_title1];
        
        
        self.content1 = [[UILabel alloc]initWithFrame:CGRectMake(20, 10 + 20 + 10, 320 - 20 - 20, 150 - 10 - 20 - 10 - 30 - 10)];
//        _content1.backgroundColor = [UIColor cyanColor];
        _content1.numberOfLines = 0;
        _content1.font = [UIFont systemFontOfSize:12];
        _content1.textColor = [UIColor grayColor];
        [self.contentView addSubview:_content1];
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
